.mycustomform {
    background: #fafafa;
    padding: 2rem 2rem 1.5rem 2rem;
    max-width: 65%;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 2px 15px 0 rgba(0,0,0,0.05);
}
.mycustomform h2,
.mycustomform legend {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 0.2rem;
}

/* --- DEFAULT two-column FLEX layout for all sections --- */
.mycustomform .scfSectionContent {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1rem;
    margin-bottom: 1rem;
}
.mycustomform .scfSectionContent > .form-group,
.mycustomform .scfSectionContent > div {
    flex: 1 1 45%;
    min-width: 210px;
    max-width: 49%;
    box-sizing: border-box;
}
/* Full-width if 'fullwidth' class is added */
.mycustomform .scfSectionContent > .form-group.fullwidth,
.mycustomform .scfSectionContent > div.fullwidth {
    flex-basis: 100%;
    max-width: 100%;
}

/* --- Custom per-section two-column layout using side-by-side-section class --- */
.mycustomform .side-by-side-section {
    display: flex;
    gap: 1rem 1rem;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}
.mycustomform .side-by-side-section > .form-group,
.mycustomform .side-by-side-section > div {
    flex: 1 1 48%;
    min-width: 210px;
    max-width: 49%;
    box-sizing: border-box;
}
.mycustomform .side-by-side-section > .form-group.fullwidth,
.mycustomform .side-by-side-section > div.fullwidth {
    flex-basis: 100%;
    max-width: 100%;
}

/* --- FLOATING LABELS --- */
.mycustomform .floating-label-group {
  position: relative;
  margin-bottom: 1.2rem;
}
.mycustomform .floating-label-group input[type="text"],
.mycustomform .floating-label-group input[type="email"],
.mycustomform .floating-label-group input[type="tel"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #ccc;
  box-sizing: border-box;
  display: block;
  font-family: "Frutiger LT W01_45 Ligh1475730", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25em;
  padding: 15px;
  width: 100%;
  border-radius: 5px;
  background: #fff;
  color: #555;
  transition: border 0.2s;
}
.mycustomform .floating-label-group label {
  position: absolute;
  top: 0.92rem;
  left: 0.8rem;
  font-weight: 600;
  font-size: 1rem;
  color: #ff9100;
  pointer-events: none;
  background: transparent;
  transition: 0.2s ease;
  margin-bottom: 0;
}
.mycustomform .floating-label-group input:focus + label,
.mycustomform .floating-label-group input:not(:placeholder-shown) + label {
  top: -0.7rem;
  left: 0.6rem;
  background: #fafafa;
  padding: 0 0.25rem;
  font-size: 0.94rem;
  color: #ff9100;
  border-radius: 3px;
}
.mycustomform .floating-label-group input:focus {
  border-color: #ff9100;
  outline: none;
}

/* --- Field labels & inputs (fallback for non-floating fields) --- */
.mycustomform label,
.mycustomform .scfFieldLabel {
    display: block;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: #ff9100;
    /* width removed here */
}
/* Only labels in side-by-side-section get width */
.mycustomform .side-by-side-section label,
.mycustomform .side-by-side-section .scfFieldLabel {
    width: 15rem;
}
.mycustomform .scfFieldLabel:after {
    content: attr(data-val-required) " *";
    color: #ff9100;
    font-size: 1rem;
}
.mycustomform input[type="text"],
.mycustomform input[type="email"],
.mycustomform input[type="tel"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: block;
    font-family: "Frutiger LT W01_45 Ligh1475730", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.25em;
    padding: 15px;
    width: 100%;
    border-radius: 5px;
    background: #fff;
    color: #555;
    transition: border 0.2s;
    height: 50px;
}

.mycustomform select {
    height: 50px;
    position: relative;
    z-index: 10;
    border: 1px solid #ccc;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    border-radius: 5px !important;
    background-color: #fff;
	width: 100%;
    /* Custom dropdown arrow */
    background-image:
      url("data:image/svg+xml;utf8,<svg fill='orange' height='18' viewBox='0 0 20 20' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.2em center;
    background-size: 1.2em;
    padding-right: 2.5em;
    cursor: pointer;
    font-family: "Frutiger LT W01_45 Ligh1475730", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.25em;
}

/* Hide default arrow in IE */
.mycustomform select::-ms-expand {
    display: none;
}

.mycustomform input[type="text"]:focus,
.mycustomform input[type="email"]:focus,
.mycustomform input[type="tel"]:focus,
.mycustomform select:focus {
    border-color: #ff9100;
    outline: none;
}

/* --- Validation and summary --- */
.mycustomform .scfFieldValidationSummary,
.mycustomform .scfValidationSummary {
    color: #dc3545;
    font-size: 0.95em;
    margin-bottom: 0.5rem;
}

/* --- Field borders and checkboxes --- */
.mycustomform .scfSingleLineTextBorder,
.mycustomform .scfDropListBorder {
    border: none;
    padding: 0;
    background: none;
}
.mycustomform .scfCheckBox {
    margin-right: 0.7rem;
    vertical-align: middle;
}

/* --- Checkbox label and consent section --- */
.mycustomform .constent-checkbox {
    appearance: auto;
    box-shadow: none;
    margin: 0px 0.5rem -46px 10rem;
    vertical-align: middle;
    display: inline-block;
}
.mycustomform .checkbox-label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #ff9100; /* Orange label text */
  font-weight: 600;
  gap: 0.7rem;    /* Space between checkbox and text */
  cursor: pointer;
  margin-bottom: 1rem;
}
.mycustomform .constent-checkbox-cpg{
    appearance: auto;
    box-shadow: none;
     margin: 0;
  vertical-align: middle;   
     width: 18px;
  height: 18px;
}
.mycustomform .sf-hidden-field {
    display: none;
}
.mycustomform .constent-checkbox + label {
    display: inline-block;
    font-weight: normal;
    vertical-align: middle;
    margin: 0;
    color: #333;
}
.mycustomform .constent-checkbox + label::after {
    display: block;
    margin-bottom: 1rem;
}

/* --- reCAPTCHA and submit --- */
.mycustomform .recaptcha-wrapper {
    margin: 1rem 0;
}
.mycustomform .scfSubmitButtonBorder input[type="submit"],
.mycustomform .scfSubmitButtonBorder button,
.mycustomform .custom-submit {
    background: #ff9100;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.7rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin: 1rem 0 0 0;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.06);
}
.mycustomform .scfSubmitButtonBorder input[type="submit"]:hover,
.mycustomform .scfSubmitButtonBorder button:hover,
.mycustomform .custom-submit:hover {
    background: #e28502;
}

/* --- Consent section --- */
.mycustomform .consent-section {
    display: flex;
    align-items: flex-start;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
}
.mycustomform .consent-section input[type="checkbox"] {
    margin-right: 0.7rem;
    margin-top: 0.2rem;
}
.mycustomform .consent-section label {
    font-size: 0.97rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 0;
}
.mycustomform .required {
    color: #ff9100;
}
.sf-hidden-field{
    display: none !important;
}
/* --- Responsive: stack columns on mobile --- */
@media (max-width: 650px) {
    .mycustomform {
        padding: 0.8rem;
    }
    .mycustomform .scfSectionContent,
    .mycustomform .side-by-side-section {
        flex-direction: column;
        gap: 0;
    }
    .mycustomform .scfSectionContent > .form-group,
    .mycustomform .scfSectionContent > div,
    .mycustomform .side-by-side-section > .form-group,
    .mycustomform .side-by-side-section > div {
        min-width: 100%;
        max-width: 100%;
    }
    .mycustomform .floating-label-group input[type="text"],
    .mycustomform .floating-label-group input[type="email"],
    .mycustomform .floating-label-group input[type="tel"],
    .mycustomform .floating-label-group select {
        padding: 1.1rem 0.7rem 0.4rem 0.7rem;
    }
}